import { _decorator, Component, Graphics, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('DrawGraphics')
export class DrawGraphics extends Component {
    @property(Graphics)
    graph: Graphics = null!;

    start() {
        this.graph.moveTo(0, 0);
        this.graph.lineTo(-600, 600);
        this.graph.lineTo(300, 300);
        this.graph.lineTo(600, 600);

        // this.graph.fillRect(100, 100, 100, 100);
        this.graph.stroke();
    }

    update(deltaTime: number) {}
}
